package ht.ser;

import ht.domain.*;

import java.util.List;
import ht.domain.Gldw;
import ht.domain.Lyxx;
import ht.domain.Page;
import ht.domain.Hlxx;
import qt.domain.Role;
import qt.domain.User;
import qt.domain.UserShow;

/**
 * Created by charmyyy on 2017/10/20.
 */
public interface IndexSer {
    /*
    public Page<> getPage(int start, int limit);

    public int add( h);

    public int uppt( h);

    public int dele(String );

     */
    //流域信息
    public Page<Lyxx> getPageLymc(int start, int limit);

    public List<Lyxx> getAllLyxx();

    public int addLymc(Lyxx h);

    public int upptLymc(Lyxx h);

    public int deleLymc(String stcd);

    //行政区划
    public Page<Hlxx> getPageHlxx(int start, int end);

    public Page<Hlxx> getPageHlxxByNm(int start, int end, String nm);

    public List<Hlxx> getAllHlxx();

    public int addHlxx(Hlxx h);

    public int upptHlxx(Hlxx h);

    public int deleHlxx(String rvcd);

    //管理单位
    public Page<Gldw> getPageGldw(int start, int end);

    public Page<Gldw> getPageGldwByNm(int start, int end, String nm);

    public List<Gldw> getAllGldw();

    public int addGldw(Gldw h);

    public int upptGldw(Gldw h);

    public int deleGldw(String admagcd);

    //行政区划信息
    public List<Xzqhxx> getAllXzqhxx();

    public Page<XzqhxxShow> getPageXzqhxx(int start, int limit);

    public int addXzqhxx(Xzqhxx h);

    public int upptXzqhxx(Xzqhxx h);

    public int deleXzqhxx(String addvcd);
    //测站等级信息
    public Page<Czdjxx> getPageCzdjxx(int start, int limit);

    public List<Czdjxx> getAllCzdjxx();

    public int addCzdjxx(Czdjxx h);

    public int upptCzdjxx(Czdjxx h);

    public int deleCzdjxx(String stgrdcd);
    //水系信息
    public Page<Sxxx> getPageSxxx(int start, int limit);

    public List<Sxxx> getAllSxxx();

    public int addSxxx(Sxxx h);

    public int upptSxxx(Sxxx h);

    public int deleSxxx(String hncd);
    //测站分类
    public Page<Czflxx> getPageCzflxx(int start, int limit);

    public List<Czflxx> getAllCzflxx();

    public int addCzflxx(Czflxx h);

    public int upptCzflxx(Czflxx h);

    public int deleCzflxx(String stclcd);
    //测站类型
    public Page<Czlxxx> getPageCzlxxx(int start, int limit);

    public List<Czlxxx> getAllCzlxxx();

    public int addCzlxxx(Czlxxx h);

    public int upptCzlxxx(Czlxxx h);

    public int deleCzlxxx(String sttpcd);
    //实施项目
    public Page<Ssxmxx> getPageSsxmxx(int start, int limit);

    public List<Ssxmxx> getAllSsxmxx();

    public int addSsxmxx(Ssxmxx h);

    public int upptSsxmxx(Ssxmxx h);

    public int deleSsxmxx(String obitcd);

    //实时库码类型
    public Page<Mlx> getPageMlx(int start, int limit);

    public List<Mlx> getAllMlx();

    public int addMlx(Mlx h);

    public int upptMlx(Mlx h);

    public int deleMlx(String tycd);

    //关联关系类型
    public Page<Relation> getPageRelation(int start,int limit);

    public List<Relation> getAllRelation();

    public int addRelation(Relation relation);

    public int upptRelation(Relation relation);

    public int deleRelation(String rela);

    //公式参数类型
    public List<Formula> getAllFormula();

    public Page<FormulaShow> getPageFormula(int start,int limit);

    public List<DataSource> getAllDataSource();

    public int addFormula(Formula formula);

    public int upptFormula(Formula formula);

    public int deleFormula(int param_id);
    //用户信息
//    public Page<User> getPageUser(int start, int limit);

    public Page<UserShow> getPageUser(int start, int limit);

    public List<User> getAllUser();

    public int addUser(User user);

    public int upptUser(User user);

    public int deleUser(String ucode);

    //角色信息
    public List<Role> getAllRole();

    public Page<Role> getPageRole(int start,int limit);

    public int addRole(Role role);

    public int upptRole(Role role);

    public int deleRole(String rolecd);
}
